#==============================================================================
#  _   _                         ____                _             
# | | | | ___  _ __ ___   ___   / ___|___  _ __ ___ (_)_ __   __ _ 
# | |_| |/ _ \| '_ ` _ \ / _ \ | |   / _ \| '_ ` _ \| | '_ \ / _` |
# |  _  | (_) | | | | | |  __/ | |__| (_) | | | | | | | | | | (_| |
# |_| |_|\___/|_| |_| |_|\___|  \____\___/|_| |_| |_|_|_| |_|\__, |
#                                                            |___/ 
#------------------------------------------------------------------------------
# Project:	Home Coming / 2D platform
# Author:	zx.longgi
# Time:		08/06-2010 
# Usage:	static object group, that contains several sub static objects.
# Description:	A logic object that holds a group of static objects.
#		This is the practical version of static objects, and designed
#		to make platform blocks.
# ClassName:	zobject_static_group
#==============================================================================


# Development Notes
# 1. Use instance list is a bad idea, make be I should construct a tree
# 2. Do not know how ogre handle objects.

from zobject_static import zobject_static

class zobject_static_group(zobject):
	"""static object group, that contains several sub static objects"""
	# number of static_objects
	static_object_count = 0
	
	# instance list of sub static objects
	# or I could have a better idea?
	# sub static objects' position will be considered as relative position
	static_object_list = []
	
	# only have a numberic list
	zobject_static_idx_list = []
	
	def __init__(self):
		this.static_object_count = 0
		this.static_object_list = []